how to create a menu based on a switch statement